while (1) {
    try {
        # 指定要访问的 URL
#        $url = "http://106.14.75.184/index/Ai/goAiAnswer"
        $url = "http://www.autoAnswer.com/index/Ai/goAiAnswer"

        # 发送 HTTP GET 请求
        $response = Invoke-WebRequest -Uri $url -UseBasicParsing

        # 输出访问结果
        if ($response.StatusCode -eq 200) {
            Write-Host "ok => " $url
        } else {
            Write-Host "error_code => " $response.StatusCode
        }
    } catch {
        Write-Host "error => " $_.Exception.Message
    }

    # 等待 10 秒后再次发送请求
    Start-Sleep -Seconds 10
}